<?php /* Smarty version 2.6.26, created on 2012-05-12 14:52:51
         compiled from blocks%5Clang_selector.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'blocks\\lang_selector.tpl', 3, false),array('modifier', 'lower', 'blocks\\lang_selector.tpl', 6, false),array('modifier', 'replace', 'blocks\\lang_selector.tpl', 11, false),)), $this); ?>
<!-- languages selector -->

<?php if (count($this->_tpl_vars['languages']) > 1): ?>
	<div class="bg">
		<div class="arrow"></div>
		<img src="<?php echo $this->_tpl_vars['rlTplBase']; ?>
img/flags/<?php echo ((is_array($_tmp=@RL_LANG_CODE)) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
.png" alt="" /> <span id="current_lang_name" class="hide"><?php echo $this->_tpl_vars['languages'][@RL_LANG_CODE]['name']; ?>
</span>
		<ul class="hide">
			<?php $_from = $this->_tpl_vars['languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['lang_item']):
?>
				<?php if (((is_array($_tmp=$this->_tpl_vars['lang_item']['Code'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)) != ((is_array($_tmp=@RL_LANG_CODE)) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp))): ?>
					<li>
						<a title="<?php echo $this->_tpl_vars['lang_item']['name']; ?>
" href="<?php echo @RL_URL_HOME; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['lang_item']['dCode']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['pageLink'])) ? $this->_run_mod_handler('replace', true, $_tmp, '&', '&amp;') : smarty_modifier_replace($_tmp, '&', '&amp;')); ?>
<?php else: ?>?language=<?php echo $this->_tpl_vars['lang_item']['Code']; ?>
<?php endif; ?>"><img src="<?php echo $this->_tpl_vars['rlTplBase']; ?>
img/flags/<?php echo ((is_array($_tmp=$this->_tpl_vars['lang_item']['Code'])) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
.png" alt="" /></a>
						<a class="name" title="<?php echo $this->_tpl_vars['lang_item']['name']; ?>
" href="<?php echo @RL_URL_HOME; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['lang_item']['dCode']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['pageLink'])) ? $this->_run_mod_handler('replace', true, $_tmp, '&', '&amp;') : smarty_modifier_replace($_tmp, '&', '&amp;')); ?>
<?php else: ?>?language=<?php echo $this->_tpl_vars['lang_item']['Code']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['lang_item']['name']; ?>
</a>
					</li>
				<?php endif; ?>
			<?php endforeach; endif; unset($_from); ?>
		</ul>
	</div>
<?php endif; ?>

<!-- languages selector end -->